import requestProxy from '@/utils/request';

const { request } = requestProxy;

// 项目详情
export function getProjectDetail(params) {
  return request({
    url: '/admin/project/info/' + params.id,
    method: 'get',
    params
  });
}
// 项目详情
export function setProjectDetail(data) {
  return request({
    url: '/admin/project/edit/invoiceAndContract',
    method: 'put',
    data
  });
}
export function uploadProjectFile(data) {
  return request({
    url: '/admin/project/file/upload',
    method: 'post',
    data
  });
}
export function deleteFile(data) {
  return request({
    url: '/admin/project/file/delete',
    method: 'delete',
    data
  });
}

export function submitExamine(data) {
  return request({
    url: '/admin/project/submit/examine',
    method: 'post',
    data
  });
}
export function firstExamine(data) {
  return request({
    url: '/admin/project/firstExamine',
    method: 'post',
    data
  });
}
export function secondExamine(data) {
  return request({
    url: '/admin/project/secondExamine',
    method: 'post',
    data
  });
}
export function confirm(data) {
  return request({
    url: '/admin/project/confirm',
    method: 'post',
    data
  });
}
export function projectBack(data) {
  return request({
    url: '/admin/project/back',
    method: 'post',
    data
  });
}
export function projectSeal(data) {
  return request({
    url: '/admin/project/seal',
    method: 'post',
    data
  });
}
export function projectUserList(params) {
  return request({
    url: '/admin/project/user/list',
    method: 'get',
    params
  });
}
